﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using WebComponents;
using WebComponents.Data;

public partial class AboutUs : System.Web.UI.Page {
  protected void Page_Load(object sender, EventArgs e) {
    var list = ArticleController.GetByCateID(80, Global.CurrentCultureCode).Where(a => a.IsApproved == true);
    rptTabContent.DataSource = list;
    rptTabContent.DataBind();
    rptTabs.DataSource = list;
    rptTabs.DataBind();
    Page.Title = "Nhan Publicite - " + WebComponents.ResourceValueController.GetString("Site_About");
    foreach (ArticleInfo a in list) {
      a.ViewCount += 1;
      ArticleController.UpdateViewCount(a.ArticleID);
    }
  }
}
